import request from '@/utils/request'

// 查询项目进度列表
export function listProject(query) {
  return request({
    url: '/crm/projectproject/list',
    method: 'get',
    params: query
  })
}

// 查询项目进度详细
export function getProject(id) {
  return request({
    url: '/crm/projectproject/' + id,
    method: 'get'
  })
}

// 新增项目进度
export function addProject(data) {
  return request({
    url: '/crm/projectproject',
    method: 'post',
    data: data
  })
}

// 修改项目进度
export function updateProject(data) {
  return request({
    url: '/crm/projectproject',
    method: 'put',
    data: data
  })
}

// 删除项目进度
export function delProject(id) {
  return request({
    url: '/crm/projectproject/' + id,
    method: 'delete'
  })
}
